import request from '@/utils/request'

// 创建ERP 高职发货单单项
export function createHighValueInvoiceItem(data) {
  return request({
    url: '/erp/high-value-invoice-item/create',
    method: 'post',
    data: data
  })
}

// 更新ERP 高职发货单单项
export function updateHighValueInvoiceItem(data) {
  return request({
    url: '/erp/high-value-invoice-item/update',
    method: 'put',
    data: data
  })
}

// 删除ERP 高职发货单单项
export function deleteHighValueInvoiceItem(id) {
  return request({
    url: '/erp/high-value-invoice-item/delete?id=' + id,
    method: 'delete'
  })
}

// 获得ERP 高职发货单单项
export function getHighValueInvoiceItem(id) {
  return request({
    url: '/erp/high-value-invoice-item/get?id=' + id,
    method: 'get'
  })
}

// 根据单品码  查询信息
export function getHighValueInvoiceItemByQrcodes(id) {
  return request({
    url: '/erp/high-value-invoice-item/getHighValueInvoiceItemByQrcodes?id=' + id,
    method: 'get'
  })
}

// 获得ERP 高职发货单单项分页
export function getHighValueInvoiceItemPage(params) {
  return request({
    url: '/erp/high-value-invoice-item/page',
    method: 'get',
    params
  })
}
// 导出ERP 高职发货单单项 Excel
export function exportHighValueInvoiceItemExcel(params) {
  return request({
    url: '/erp/high-value-invoice-item/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}